home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pippki / nsIPKIParamBlock.h < prev   
C/C++ Source or Header  |  2006-05-08  |  3KB  |  102 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPKIParamBlock.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPKIParamBlock_h__
  6. #define __gen_nsIPKIParamBlock_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIPKIParamBlock */
  19. #define NS_IPKIPARAMBLOCK_IID_STR "b6fe3d78-1dd1-11b2-9058-ced9016984c8"
  20.  
  21. #define NS_IPKIPARAMBLOCK_IID \
  22.   {0xb6fe3d78, 0x1dd1, 0x11b2, \
  23.     { 0x90, 0x58, 0xce, 0xd9, 0x01, 0x69, 0x84, 0xc8 }}
  24.  
  25. class NS_NO_VTABLE nsIPKIParamBlock : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPKIPARAMBLOCK_IID)
  29.  
  30.   /* void setISupportAtIndex (in long index, in nsISupports object); */
  31.   NS_IMETHOD SetISupportAtIndex(PRInt32 index, nsISupports *object) = 0;
  32.  
  33.   /* nsISupports getISupportAtIndex (in long index); */
  34.   NS_IMETHOD GetISupportAtIndex(PRInt32 index, nsISupports **_retval) = 0;
  35.  
  36. };
  37.  
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIPKIPARAMBLOCK \
  40.   NS_IMETHOD SetISupportAtIndex(PRInt32 index, nsISupports *object); \
  41.   NS_IMETHOD GetISupportAtIndex(PRInt32 index, nsISupports **_retval); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIPKIPARAMBLOCK(_to) \
  45.   NS_IMETHOD SetISupportAtIndex(PRInt32 index, nsISupports *object) { return _to SetISupportAtIndex(index, object); } \
  46.   NS_IMETHOD GetISupportAtIndex(PRInt32 index, nsISupports **_retval) { return _to GetISupportAtIndex(index, _retval); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIPKIPARAMBLOCK(_to) \
  50.   NS_IMETHOD SetISupportAtIndex(PRInt32 index, nsISupports *object) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetISupportAtIndex(index, object); } \
  51.   NS_IMETHOD GetISupportAtIndex(PRInt32 index, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetISupportAtIndex(index, _retval); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsPKIParamBlock : public nsIPKIParamBlock
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSIPKIPARAMBLOCK
  62.  
  63.   nsPKIParamBlock();
  64.  
  65. private:
  66.   ~nsPKIParamBlock();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsPKIParamBlock, nsIPKIParamBlock)
  74.  
  75. nsPKIParamBlock::nsPKIParamBlock()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsPKIParamBlock::~nsPKIParamBlock()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* void setISupportAtIndex (in long index, in nsISupports object); */
  86. NS_IMETHODIMP nsPKIParamBlock::SetISupportAtIndex(PRInt32 index, nsISupports *object)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90.  
  91. /* nsISupports getISupportAtIndex (in long index); */
  92. NS_IMETHODIMP nsPKIParamBlock::GetISupportAtIndex(PRInt32 index, nsISupports **_retval)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* End of implementation class template. */
  98. #endif
  99.  
  100.  
  101. #endif /* __gen_nsIPKIParamBlock_h__ */
  102.